<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Cat(name, color) {
            this.name = name;
            this.color = color;
            return this
        }
        Cat.prototype.species = "Miao";
        Cat.prototype.call = function () {
            console.log("喵喵喵");
        }
        Cat.prototype.skill = function () {
            console.log("zhuo老鼠");
        }
        console.dir(Cat);
        console.log(Cat.prototype);
        var tom = new Cat("tom", "black");
        console.log(tom, tom instanceof Cat);
        tom.skill();

    </script>
</body>

</html>